php forum
php mysql forum
php mysql smarty
 
Page 1 of 3 1 2 3 >
Topic Options
#233027 - 01/12/03 10:42 PM [6.2] Postlist Last Post By for 6.2
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Mod Name / Version - Postlist Last Post By for 6.2 <br /> <br />Description - Shows the "Last Post By" information on the postlist page. To save queries, I chose to store the username... so the name won't be accurate if a user has changed their display name. Since this is only stored for the last post, I figured it was worth the savings in queries. <br /> <br />Pre-requisites - none <br /> <br />Author - JustDave from www.chattersonline.com original author <br />   Updated for 6.2 by JoshPet of www.joshuapettit.com <br /> <br />Credits - Allen Ayres for testing of original version <br /> <br />Files Altered - <br />   postlist.php (threads directory) <br />   postlist.tmpl (threads directory) <br />   addpost.php (threads directory) <br />   doapproveposts.php (admin directory) <br />   viewunapproved.php (admin directory) <br />   deletepost.php (threads directory) <br /> <br />Database Altered - Yes. 3 fields (B_Last_Number, B_Last_Name, and B_Last_Approved) added to w3t_Posts table. <br /> <br />New Files - none <br /> <br />Any other info - JustDave gets a bulk of the credit here, I just adapted for 6.2. <img src="/forum/images/graemlins/wink.gif" alt="" /> <br /> <br />Last Update: January 19, 2003


Attachments
64714-lastpostby.6.2.zip (128 downloads)



Edited by JustDave (01/19/03 03:51 PM)
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#233028 - 01/12/03 11:25 PM Re: [6.2] Postlist Last Post By for 6.2 [Re: Daine]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
thank you <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#233029 - 01/12/03 11:33 PM Re: [6.2] Postlist Last Post By for 6.2 [Re: SurfMinister]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
You are welcome. Sometimes I need a nudge to get stuff onto my plate.<br /><br />JustDave my know a better way to do this. I stored the username for last post to save queries. So it won't change when the name changes, but it changes as soon as there's another post in that thread anyway, so for my board, I didn't see it as a big issue. <br /><br />The link still works... and as we have discovered here, once the name change thing gets tested out, it's doesn't happen that frequently. <br /><br />But otherwise it required another query per thread being viewed. Probably could have been done like the [Re: Username] thing with an array, but that one escapes me at my current coding level. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#233030 - 01/12/03 11:38 PM Re: [6.2] Postlist Last Post By for 6.2 [Re: Daine]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
it escapes me at my next 2 coding levels <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#233031 - 01/12/03 11:45 PM Re: [6.2] Postlist Last Post By for 6.2 [Re: SurfMinister]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
LOL - I'm gaining on it. But I didn't sleep last night (bad new habit of skipping sleep on Saturday night <img src="/forum/images/graemlins/crazy.gif" alt="" />) so I can't even comprehend it right now. <img src="/forum/images/graemlins/tongue.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#233032 - 01/13/03 06:14 AM Re: [6.2] Postlist Last Post By for 6.2 [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Yeah I was stopped at that point on this. I need to set that same array setup on this to get the usernames from their numbers. I'll update your instructions when I do this. Thanks for bringing it up to speed for 6.2 <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#233033 - 01/14/03 03:29 AM Re: [6.2] Postlist Last Post By for 6.2 [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Is deletepost.php working for you? It must be late but I can't see what I may have done wrong... lol It's something simple so it's alluding me right now. I think I'm looking way to deep. LoL <img src="/forum/images/graemlins/crazy.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#233034 - 01/14/03 03:39 AM Re: [6.2] Postlist Last Post By for 6.2 [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
It was working for me... I'll send you my deletepost and you can compare. <img src="/forum/images/graemlins/tongue.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#233035 - 01/14/03 03:42 AM Re: [6.2] Postlist Last Post By for 6.2 [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Thanks but I think it's do to my own coding mess at the moment... LoL I'll get my stuff cleaned up.
_________________________
~Dave
ChattersOnline.com

Top
#233036 - 01/14/03 09:15 AM Re: [6.2] Postlist Last Post By for 6.2 [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Test <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#233037 - 01/14/03 09:23 AM Re: [6.2] Postlist Last Post By for 6.2 [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Ok at the cost of one query in postlist.php and saving 1 query in the other scripts I have this working with user numbers. yay <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />I'll append the instructions sometime today. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#233038 - 01/14/03 09:56 AM Re: [6.2] Postlist Last Post By for 6.2 [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Hey, <br />I just noticed both on my board and here (since installing this) that my new post rows aren't ligthing up.<br /><br />Can't think of why this would mess that up.... can you?<br /><br /><img src="/forum/images/graemlins/confused.gif" alt="" /><br /><br />Or is this just a mac thing? <img src="/forum/images/graemlins/tongue.gif" alt="" /><br /><br />It doesn't mess with classes in the postlist.tmpl file.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#233039 - 01/14/03 09:57 AM Re: [6.2] Postlist Last Post By for 6.2 [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
hmmmm.... I hadn't noticed. I'll look things over and see what may be the cause. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#233040 - 01/14/03 11:24 AM Re: [6.2] Postlist Last Post By for 6.2 [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Ok I finished cleaning things up a bit. There's a new create/alter table script as well so that old installs can update and use the user numbers.<br /><br />Will zip and post shortly. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#233041 - 01/14/03 11:30 AM Re: [6.2] Postlist Last Post By for 6.2 [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
You got the post lines working again. <img src="/forum/images/graemlins/grin.gif" alt="" /><br /><br />Yeah. Well I tried and came close.... as usual. Always need JustDave around to finalize things. <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br />Thanks Dave. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#233042 - 01/14/03 11:40 AM Re: [6.2] Postlist Last Post By for 6.2 [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Your welcome <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />I just updated the zip. There's a new createlastpostfields-6.2.php script everyone will need to run. For those that are upgrading this will clean out the B_Last_Name field and change it's type to INT(9).<br /><br />You'll need to be logged in as an admin and the forums need to be closed to access the script.
_________________________
~Dave
ChattersOnline.com

Top
#233043 - 01/17/03 05:34 AM Re: [6.2] Postlist Last Post By for 6.2 [Re: sjsaunders]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Thanks for this Josh & Dave - will be installing today <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#233044 - 01/18/03 05:21 AM Re: [6.2] Postlist Last Post By for 6.2 [Re: Gorlum]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Dave - <br />I thought I could fix this on my own...but the way you've thrown all the user numbers into an array... it confuses me. <img src="/forum/images/graemlins/crazy.gif" alt="" /><br /><br />Anyway... need to add a clause if the user number is 1, then it needs to fetch the anon name from he post table. Otherwise the last posts (if anon) show up as ***DONOTDELETE*** <img src="/forum/images/graemlins/tongue.gif" alt="" /><br /><br />Ugh.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#233045 - 01/18/03 07:03 AM Re: [6.2] Postlist Last Post By for 6.2 [Re: sjsaunders]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
JustDave, i installed this one also and it works very well.<br />But i have a question regarding the field B_Last_Approved.<br />What's the different to B_Approved?<br />I think it stores exactly the same values or did i get something wrong?
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#233046 - 01/18/03 07:34 AM Re: [6.2] Postlist Last Post By for 6.2 [Re: -Fusion-]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
The B_Last_Approved is 'yes' by default just as is B_Approved. If a user replies to a thread and their reply needs approval then it will not be displayed in the "Last Post By" information untill it is approved. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
Page 1 of 3 1 2 3 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks